﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Web4Comment.Service
{
    public class ChatTimeService : TimeService
    {
        public static long logFriendStartTime(int userid, DateTime start_time, int friendId)
        {
            return logStartTimeBase(userid, start_time, 1, friendId);
        }

        public static long logNewsStartTime(int userid, DateTime start_time, int newsId)
        {
            return logStartTimeBase(userid, start_time, 2, newsId);
        }

        public static long logMaintainStartTime(int userid, DateTime start_time, int nothing)
        {
            return logStartTimeBase(userid, start_time, 3, nothing);
        }

        public static bool logEndTime(long timeid, DateTime end_time)
        {
            return logEndTimeBase(timeid, end_time);
        }

        public static TimeSpan calculateFriendTime(int userid, int friendId)
        {
            return calculateTimeBase(userid, 1, friendId);
        }

        public static TimeSpan calculateTimeTotal(int userid)
        {
            return calculateTimeTotalBase(userid, 1);
        }
    }

}
